package com.solairen.myapplication.Pager.HomePager

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.solairen.myapplication.databinding.ActivityConsultDetailBinding

/**
 *
 * 
 * @Date 2024/3/9 21:25
 */
class ConsultationDetailActivity : AppCompatActivity() {
    private lateinit var viewBinding: ActivityConsultDetailBinding

    companion object {
        const val KEY_TITLE = "title"
        const val KEY_CONTENT = "content"
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        viewBinding = ActivityConsultDetailBinding.inflate(layoutInflater)
        setContentView(viewBinding.root)
        init()
    }

    private fun init() {
        val title = intent.getStringExtra(KEY_TITLE)
        val content = intent.getStringExtra(KEY_CONTENT)
        viewBinding.title.text = title
        viewBinding.content.text = content

        viewBinding.settingIvBack.setOnClickListener {
            finish()
        }
    }
}